# -*- coding: utf-8 -*-

BASE_URL = 'http://id.who.int/icd/'

# Foundation api endpoints
ENTITY_URL = BASE_URL + 'entity/'
ENTITY_ID_URL = ENTITY_URL + '{icd11_code}'
ENTITY_SEARCH_URL = ENTITY_URL + 'search'

# Linnearization endpoints
# Endpoints with no release id
LINEAR_URL = BASE_URL + 'release/11/{linear}'
LINEAR_ID_URL = LINEAR_URL + '/{{icd11_code}}'
LINEAR_ID_RESIDUAL_URL = LINEAR_ID_URL + '/{residual}'

# Endpoints that require a release id
LINEAR_RELEASE_URL = BASE_URL + 'release/11/{release_id}/{linear}'
LINEAR_RELEASE_ID_URL = LINEAR_RELEASE_URL + '/{{icd11_code}}'
LINEAR_RELEASE_RESIDUAL_URL = LINEAR_RELEASE_ID_URL + '/{residual}'
LINEAR_RELEASE_SEARCH = BASE_URL + 'release/11/{release_id}/{linear}/search'
RELEASE_CODEINFO_URL = LINEAR_RELEASE_URL + "/codeinfo/{{icd11_code}}"

TOKEN_ENDPOINT = 'https://icdaccessmanagement.who.int/connect/token'
